#ifndef CL_NEWS_POOL_H_INCLUDED
#define CL_NEWS_POOL_H_INCLUDED

#include<string>
#include<vector>
#include "CL_News.h"
#include "CL_RSS_Quelle.h"


class CL_News_pool {
public:
     static CL_News_pool& get_news_pool();
     static bool add_source_url(const std::string& s);
     static CL_News old_news_first();
     static CL_News random_news();
     static int get_news_count();
     static void set_interval(const time_t t);

private:
     static CL_News_pool* news_pool_singleton;
     static newsmap mynewsmap;
     static std::map<std::string,CL_RSS_Quelle> sources;
     static time_t last_update;
     static time_t interval;

     CL_News_pool(){};
     CL_News_pool& operator=(const CL_News_pool&){};

};


#endif // CL_NEWS_POOL_H_INCLUDED
